#include"udp.h"
#include <iostream>

using namespace std;


int main(int argc,char *argv[]){

    if (argc < 1) {
        perror("ERROR, no port provided\n");
        exit(1);
    }

    Udp cli;
    char buffer[]="send";
    cli.enviar(buffer,5555,argv[1]);
    cout<<cli.recibir()<<endl;
    cout<<"introduce mensaje"<<endl;
    bzero(buffer,4);
    cin>>buffer;
    cli.enviar(buffer);

}

